package scrum.entity;

import java.util.ArrayList;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;

//This statement means that class "ProjectsStore" is the root-element of our application
@XmlRootElement(namespace = "project")

public class ProjectsStore {
	
	// XmLElementWrapper generates a wrapper element around XML representation
	@XmlElementWrapper(name = "projectList")
	
	@XmlElement(name = "project")
	private ArrayList<Project> projectList = new ArrayList<Project>();
	

	public void setProjectList(ArrayList<Project> projectList) {
		this.projectList = projectList;
	}

	public ArrayList<Project> getProjectsList() {
		return projectList;
	}
}